package urnoted;

/**
 *
 * @author gh3ki
 */
import java.awt.Color;
import java.awt.Rectangle;

public class Key{
    private int mWidth;                // width of key
    private int mHeight;               // height of key
    private int x;               // x-coordinate of square
    private int y;              // y-coordinate of square
    private Note mNote;                // stores this keys note
    private Color mColor;              // stores color, for repainting
    private Rectangle mKeyRect;
    private char mLetter;

    public Key(int x, int y, int width, int height, Note note, Color color,
            char letter) {
        this.x = x;
        this.y = y;
        this.mWidth = width;
        this.mHeight = height;
        this.mNote = note;
        this.mKeyRect = new Rectangle(this.x, this.y, this.mWidth, this.mHeight);
        this.mColor = color;
        this.mLetter = letter;
    }

    public Color getColor() {
        return this.mColor;
    }

    public void setColor(Color color) {
        this.mColor = color;
    }

    public Rectangle getKeyRect() {
        return this.mKeyRect;
    }

    public void setKeyRect(Rectangle keyRect) {
        this.mKeyRect = keyRect;
    }

    public char getLetter() {
        return this.mLetter;
    }

    public void setLetter(char letter) {
        this.mLetter = letter;
    }

    public Note getNote() {
        return mNote;
    }

    public void setNote(Note mNote) {
        this.mNote = mNote;
    }
}
